package entity;

public class Bean {

    private String name;
    private Bean2 bean2;

    public Bean() {
    }

    public Bean(String name, Bean2 bean2) {
        this.name = name;
        this.bean2 = bean2;
    }


    public Bean2 getBean2() {
        return bean2;
    }

    public void setBean2(Bean2 bean2) {
        this.bean2 = bean2;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void num() {
        System.out.println(this.name+"打印机使用使用" + this.name + "墨盒打印，打印页大小" + bean2.getABname());
    }

}